import { PrismaClient } from '@prisma/client'

const prisma = new PrismaClient({
  log: [
    {
      emit: 'stdout',
      level: 'query'
    },
  ],
});

async function main() {
  const user = await prisma.user.create({
    data: {
      name: '东东东',
      email: 'dongdong@dong.com',
      Post: {
        create: [
          {
            title: 'aaa',
            content: 'aaaa'
          },
          {
            title: 'bbb',
            content: 'bbbb'
          }
        ]
      },
    },
  })
  console.log(user)
}

main();
